package hb.software.exam.controller;

import hb.software.exam.entity.Exam;
import hb.software.service.exam.ExamManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import edu.zut.hb.software.base.web.GenericController;

public class ExamController extends GenericController<Exam,Long, ExamManager> {

    ExamManager examManager;

    @Autowired
    public void setExamManager(ExamManager examManager) {
        this.examManager = examManager;
        this.manager = this.examManager;
    }

    @RequestMapping(method = RequestMethod.GET, value = "/index.html")
    public String index() {
        String result = "/exam/index";
        return result;
    }
}
